<template>
  <div class="header">
    <div class="logo">
      <img src="./images/logo.png" alt="技筹科技" class="logo-pic">
    </div>
    <el-menu :default-active="$route.path" router class="el-menu-demo" mode="horizontal" background-color="transparent"
  text-color="#fff" >
      <el-menu-item index="/index"> 首页</el-menu-item>
      <el-menu-item index="/callshow">来电秀</el-menu-item>
      <el-menu-item index="/letter">闪信</el-menu-item>
      <el-menu-item index="/lostrepair">失联修复</el-menu-item>
      <el-menu-item index="/precision">精准营销</el-menu-item>
      <el-menu-item index="/agent">加盟代理</el-menu-item>
      
      <el-button type="info" size="medium" class="reg" @click="login">注册</el-button>
      <el-button type="success" size="medium" class="login" @click="login">登录</el-button>
    </el-menu>
  </div>
</template>
<script>
export default {
  data () {
    return {
    }
  },
  methods: {
    login(){
      this.$router.push({
        path:'/login'
      })
    }
  }
}
</script>
<style scoped>
.header{
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
}
.logo{
  width: 40%;
  height: 80px;
  float: left;
}
.logo-pic{
  width: 174px;
  height: 36px;
  display: block;
  margin-left: 40px;
  margin-top: 22px;
}
.el-menu-demo{
  width: 60%;
  float: right;
  height: 80px;
  border: none;
  padding: 0;
}
.el-menu--horizontal>.el-menu-item{
  margin-top: 25px;
  height: 30px;
  line-height: 30px
}
.el-menu-item:hover{
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.8)!important;
}
.el-menu--horizontal>.el-menu-item.is-active{
  border: 1px solid #fff;
  border-bottom-color: #fff;
  color: #fff;
}
.el-button{
  margin-top: 22px;
  border-radius: 2px;
  float: right;
}
.login{
  margin-right: 15px;
}
.reg{
  margin-right: 40px;
}
.el-button--success{
  background-color: #3DD18F;
  border-color: #3DD18F
}
.el-button--info{
  background-color: #3E4D60;
  border-color: #3E4D60
}
</style>
  